import 'package:flutter/material.dart';

/// Create： Zhang 4/15/21 1:57 PM
/// 描述：显示相关
class Display {
  ///顶部状态栏的高度
  static double topMargin(BuildContext context) {
    return MediaQuery.of(context).padding.top;
  }

  ///获取屏幕宽度
  static double screenWidth(BuildContext context) {
    return MediaQuery.of(context).size.width;
  }

  ///获取屏幕高度
  static double screenHeight(BuildContext context) {
    return MediaQuery.of(context).size.height;
  }
}
